﻿<%@ Page Language="C#" AutoEventWireup="true" EnableViewState="false" EnableEventValidation = "false" CodeBehind="ShipmentOrderRptList.aspx.cs" Inherits="WMS6.Web.Analytics.ShipmentOrderRptList" meta:resourcekey="Page" %>
<%@ PreviousPageType VirtualPath="~/Analytics/ShipmentOrderRptQuery.aspx" %>
<%@ Register src="../UserControls/Pager.ascx" tagname="Pager" tagprefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>ShipmentOrderRptList</title>
    <link href="../style/zh/1/css.css" type="text/css" rel="Stylesheet" id="mycss" />
     <link href="../Css/style.css" type="text/css" rel="stylesheet" />
     <script src="../Js/jquery.js" type="text/javascript"></script>
    <script src="../Js/jquery.simplemodal.js" type="text/javascript"></script> 
    <script src="../Js/util.js" type="text/javascript"></script>
    <script src="../Js/InitPage.js" type="text/javascript"></script>    
    <script src="../Js/checkbox.js" type="text/javascript"></script>    
    <script type="text/javascript">
    
      window.onload = function(){
            initListPage();
        }
        
        function returnSearch()
        {
            var from = document.getElementById("hdnFrom").value;
            if(from != "")
            {
                window.location.href = "ShipmentOrderRptQuery.aspx";
            }
            else
            {
                window.history.go(-1);
            }
        }
    </script>
</head>
<body>
    <form id="F15441" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        
        <div id="div_List_top">
            <table>
                <tr>
                    <td valign="bottom"><asp:Label ID="lblReceiptInquiryList" runat="server" CssClass="label_header"  Text="发货报告" meta:resourcekey="lblUom"></asp:Label></td>
                      <td><asp:Button ID="btnRefresh" runat="server" CssClass="button" Enabled="False" 
                              Text="<%$Resources:ButtonResource,btnRefresh%>"  
                              onclick="btnRefresh_Click" /></td>
                    </tr>
            </table>
        </div>
        <div class="blank8">
        </div>
        
        
        <asp:UpdatePanel ID="up1" runat="server">
            <ContentTemplate>                
                
                 <div id="div_List">
                 <div id="div_List_msg">
                        <asp:Label ID="lblMsg" runat="server" CssClass="label_message"></asp:Label>
                    </div>
                    <asp:GridView ID="gvShipmentOderRpt" runat="server" AutoGenerateColumns="False" AllowSorting="True"
                        CssClass="gridview" DataKeyNames="ORDER_ID" PageSize="20"   oninit="gvShipmentOderRpt_Init" 
                            Width="5000px" onrowdatabound="gvShipmentOderRpt_RowDataBound" 
                         onsorting="gvShipmentOderRpt_Sorting" 
                         meta:resourcekey="gvShipmentOderRpt"  >
                        <FooterStyle CssClass="GridViewFooterStyle" />
                        <RowStyle CssClass="GridViewRowStyle" />
                        <HeaderStyle CssClass="GridViewHeaderStyle" />
                        <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
                        <Columns>
                            <asp:BoundField HeaderText="序号" FooterText="序号" 
                                meta:resourcekey="BoundField">
                                    <ItemStyle CssClass="GridViewRowWidth_40" />
                                </asp:BoundField>
                               
                                <asp:TemplateField meta:resourcekey="TemplateField">
                                    <HeaderTemplate>
                                        <img src="../Images/gvSettingpic.gif" id="img01" class="gvSettingImg" onclick="gvUserSetting('15441','gvShipmentOderRpt');" onmouseover="showGVUserSettingAlt(this);" alt="customize list" />
                                        <asp:CheckBox ID="CheckBox1" runat="server" 
                                            onclick="selectAll(this,'gvShipmentOderRpt');" 
                                            meta:resourcekey="CheckBox1" /> 
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                        <asp:CheckBox ID="chbSelect" runat="server" 
                                            meta:resourcekey="chbSelect" />
                                    </ItemTemplate>
                                    <FooterTemplate>
                                        <asp:CheckBox ID="CheckBox2" runat="server" 
                                            onclick="selectAll(this,'gvShipmentOderRpt');" 
                                            meta:resourcekey="CheckBox2" /> 
                                    </FooterTemplate>
                                    <HeaderStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_50"/>
                                    <ItemStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_50"/>
                                </asp:TemplateField>
                                <asp:BoundField DataField="STATUS" HeaderText="发货状态" FooterText="发货状态" 
                                    SortExpression="STATUS" meta:resourcekey="STATUS">
                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                </asp:BoundField>
                                <asp:BoundField DataField="OWNER_ID" HeaderText="货主代码" FooterText="货主代码" 
                                SortExpression="OWNER_ID" meta:resourcekey="OWNER_ID">
                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                </asp:BoundField>
                                <asp:BoundField DataField="ORDER_ID" HeaderText="发货订单号" FooterText="发货订单号" 
                                SortExpression="ORDER_ID" meta:resourcekey="ORDER_ID">
                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                </asp:BoundField>
                                <asp:BoundField DataField="REFERENCE_NUM" HeaderText="销售订单号" 
                                FooterText="销售订单号" SortExpression="REFERENCE_NUM" 
                                meta:resourcekey="EXTERNAL_ORDER_ID2">
                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                </asp:BoundField>
                                <asp:BoundField DataField="EXTERN_ORDER_ID" HeaderText="外部订单号" 
                                FooterText="外部订单号" SortExpression="EXTERN_ORDER_ID" 
                                meta:resourcekey="EXTERN_ORDER_ID">
                                    <ItemStyle CssClass="GridViewRowWidth_150" />
                                </asp:BoundField>
                                <asp:BoundField DataField="TYPE" HeaderText="类型" FooterText="类型" 
                                SortExpression="TYPE" meta:resourcekey="TYPE">
                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                </asp:BoundField>
                                <asp:BoundField DataField="CONSIGNEE_ID" HeaderText="客户代码" 
                                FooterText="客户代码" SortExpression="CONSIGNEE_ID" 
                                meta:resourcekey="CONSIGNEE_ID">
                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                </asp:BoundField>
                                <asp:BoundField DataField="C_COMPANY" HeaderText="客户名称" FooterText="客户名称" 
                                SortExpression="C_COMPANY" meta:resourcekey="C_COMPANY">
                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                </asp:BoundField>
                                <asp:BoundField DataField="C_ADDRESS" HeaderText="发货地址" FooterText="发货地址" 
                                SortExpression="C_ADDRESS" meta:resourcekey="C_ADDRESS">
                                    <ItemStyle CssClass="GridViewRowWidth_200" />
                                </asp:BoundField>
                                <asp:BoundField DataField="CARRIER_ID" HeaderText="承运商代码" 
                                FooterText="承运商代码" SortExpression="CARRIER_ID" 
                                meta:resourcekey="CARRIER_ID">
                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                </asp:BoundField>
                                <asp:BoundField DataField="CARRIER_NAME" HeaderText="承运商名称" 
                                FooterText="承运商名称" SortExpression="CARRIER_NAME" 
                                meta:resourcekey="CARRIER_NAME">
                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                </asp:BoundField>
                                
                                <asp:TemplateField FooterText="制单日期" HeaderText="制单日期" 
                                SortExpression="CREATED_DATE" meta:resourcekey="CREATED_DATE">
                                    <ItemTemplate>
                                        <asp:Label ID="lblCreatedDate" runat="server" 
                                            Text='<%# GetPreferenceShortDate(Eval("CREATED_DATE").ToString()) %>' 
                                            meta:resourcekey="lblCreatedDate"></asp:Label>
                                    </ItemTemplate>
                                    <ItemStyle CssClass="GridViewRowWidth_150" />
                                </asp:TemplateField>
                                                                
                                <asp:TemplateField FooterText="要求发货日期" HeaderText="要求发货日期" 
                                SortExpression="REQUESTED_SHIP_DATE" meta:resourcekey="REQUESTED_SHIP_DATE">
                                    <ItemTemplate>
                                        <asp:Label ID="lblRequestedShipDate" runat="server" 
                                            Text='<%# GetPreferenceShortDate(Eval("REQUESTED_SHIP_DATE").ToString()) %>' 
                                            meta:resourcekey="lblRequestedShipDate"></asp:Label>
                                    </ItemTemplate>
                                    <ItemStyle CssClass="GridViewRowWidth_200" />
                                </asp:TemplateField>
                                
                                <asp:TemplateField FooterText="实际发货日期" HeaderText="实际发货日期" 
                                SortExpression="ACTUAL_SHIP_DATE" meta:resourcekey="ACTUAL_SHIP_DATE">
                                    <ItemTemplate>
                                        <asp:Label ID="lblActualShipDate" runat="server" 
                                            Text='<%# GetPreferenceShortDate(Eval("ACTUAL_SHIP_DATE").ToString()) %>' 
                                            meta:resourcekey="lblActualShipDate"></asp:Label>
                                    </ItemTemplate>
                                    <ItemStyle CssClass="GridViewRowWidth_200" />
                                </asp:TemplateField>
                                
                                <asp:BoundField DataField="LINE_ID" HeaderText="行号" FooterText="行号" 
                                SortExpression="LINE_ID" meta:resourcekey="LINE_ID">
                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                </asp:BoundField>
                                <asp:BoundField DataField="SKU_ID" HeaderText="货品代码" FooterText="货品代码" 
                                SortExpression="SKU_ID" meta:resourcekey="SKU_ID" >
                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                </asp:BoundField>
                                <asp:TemplateField FooterText="货品描述" HeaderText="货品描述" 
                                SortExpression="DESCR" meta:resourcekey="DESCR" >
                                    <ItemTemplate>
                                        <asp:Label ID="lblSkuDescr" runat="server" 
                                            Text='<%# Eval("DESCR").ToString() %>' meta:resourcekey="lblSkuDescr"></asp:Label>
                                    </ItemTemplate>
                                    <ItemStyle CssClass="GridViewRowWidth_200" />       
                                 </asp:TemplateField>
                                    <asp:BoundField DataField="PACK_ID" HeaderText="包装代码" FooterText="包装代码" 
                                    SortExpression="PACK_ID" meta:resourcekey="PACK_ID">
                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                </asp:BoundField>
                                 <asp:BoundField DataField="UOM_DESCR" HeaderText="单位" FooterText="单位" 
                                    SortExpression="UOM_DESCR" meta:resourcekey="UOM_DESCR">
                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                       </asp:BoundField>
                                <asp:BoundField DataField="SKU_CLASS_ID" HeaderText="货品分类" 
                                FooterText="货品分类" SortExpression="SKU_CLASS_ID" 
                                meta:resourcekey="SKU_CLASS_ID">
                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                </asp:BoundField>
                                <asp:BoundField DataField="VENDOR_ID" HeaderText="供应商代码" FooterText="供应商代码" 
                                SortExpression="VENDOR_ID" meta:resourcekey="VENDOR_ID">
                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                </asp:BoundField>
                                <asp:BoundField DataField="COMPANY" HeaderText="供应商名称" FooterText="供应商名称" 
                                SortExpression="COMPANY" meta:resourcekey="COMPANY">
                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                </asp:BoundField>
                                <asp:BoundField DataField="EXTERNAL_LOT" HeaderText="外部批次号" 
                                FooterText="外部批次号" SortExpression="EXTERNAL_LOT" 
                                meta:resourcekey="BoundField7">
                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                </asp:BoundField>
                                
                                <asp:TemplateField FooterText="预期量" HeaderText="预期量" 
                                SortExpression="ORIGINAL_QTY" meta:resourcekey="ORIGINAL_QTY">
                                    <ItemTemplate>
                                        <asp:Label ID="lblOriginalQty" runat="server" 
                                            Text='<%# GetPreferenceDigit(Eval("ORIGINAL_QTY").ToString()) %>' 
                                            meta:resourcekey="lblOriginalQty"></asp:Label>
                                    </ItemTemplate>
                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                </asp:TemplateField>
                                
                                <asp:TemplateField FooterText="实际发货量" HeaderText="实际发货量" 
                                SortExpression="SHIPPED_QTY" meta:resourcekey="SHIPPED_QTY">
                                    <ItemTemplate>
                                        <asp:Label ID="lblShippedQty" runat="server" 
                                            Text='<%# GetPreferenceDigit(Eval("SHIPPED_QTY").ToString()) %>' 
                                            meta:resourcekey="lblShippedQty"></asp:Label>
                                    </ItemTemplate>
                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                </asp:TemplateField>
                                
                                <asp:TemplateField FooterText="差异量" HeaderText="差异量" 
                                SortExpression="OPEN_QTY" meta:resourcekey="OPEN_QTY">
                                    <ItemTemplate>
                                        <asp:Label ID="lblOpenQty" runat="server" 
                                            Text='<%# GetPreferenceDigit(Eval("OPEN_QTY").ToString()) %>' 
                                            meta:resourcekey="lblOpenQty"></asp:Label>
                                    </ItemTemplate>
                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                </asp:TemplateField>
                                
                                <asp:BoundField DataField="SKU_PROPERTY" HeaderText="货品属性" 
                                FooterText="货品属性" SortExpression="SKU_PROPERTY" 
                                meta:resourcekey="SKU_PROPERTY">
                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                </asp:BoundField>
                                
                                <asp:TemplateField FooterText="总重量" HeaderText="总重量" 
                                SortExpression="TOTAL_WGT" meta:resourcekey="TOTAL_WGT">
                                    <ItemTemplate>
                                        <asp:Label ID="lblTotalWgt" runat="server" 
                                            Text='<%# GetPreferenceDigit(Eval("TOTAL_WGT").ToString()) %>' 
                                            meta:resourcekey="lblTotalWgt"></asp:Label>
                                    </ItemTemplate>
                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                </asp:TemplateField>
                                
                                <asp:TemplateField FooterText="总毛重" HeaderText="总毛重" 
                                SortExpression="TotalWeight" meta:resourcekey="TotalWeight">
                                    <ItemTemplate>
                                        <asp:Label ID="lblTotalWeight" runat="server" 
                                            Text='<%# GetPreferenceDigit(Eval("TotalWeight").ToString()) %>' 
                                            meta:resourcekey="lblTotalWeight"></asp:Label>
                                    </ItemTemplate>
                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                </asp:TemplateField>
                                
                                <asp:TemplateField FooterText="总体积" HeaderText="总体积" 
                                SortExpression="TotalCube" meta:resourcekey="TotalCube">
                                    <ItemTemplate>
                                        <asp:Label ID="lblTotalCube" runat="server" 
                                            Text='<%# GetPreferenceDigit(Eval("TotalCube").ToString()) %>' 
                                            meta:resourcekey="lblTotalCube"></asp:Label>
                                    </ItemTemplate>
                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                </asp:TemplateField>
                                
                                <asp:BoundField DataField="REMARK" HeaderText="备注" FooterText="备注" 
                                SortExpression="REMARK" meta:resourcekey="REMARK">
                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                </asp:BoundField>
                                
                        </Columns>
                        
                    </asp:GridView>
                    <div>
                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr style="height: 10px">
                                <td>
                                </td>
                            </tr>
                            <tr>
                                <td class="Result_01">
                                    总计：
                                </td>
                                <td class="Result_02">
                                    <table>
                                        <tr>
                                            <td style="margin-right: 20px;">
                                                &nbsp; &nbsp;
                                            </td>
                                             <td>
                                                <asp:Label ID="lblTotalOriginalQty" runat="server" Text="预期量:" class="label"></asp:Label>
                                                <asp:Label ID="lblTotalOriginalQtyText" runat="server" Text="" class="label" Style="margin-right: 10px;"></asp:Label>
                                            </td>      
                                             <td>
                                                <asp:Label ID="lblTotalShippedQty" runat="server" Text="实际发货量:" class="label"></asp:Label>
                                                <asp:Label ID="lblTotalShippedQtyText" runat="server" Text="" class="label" Style="margin-right: 10px;"></asp:Label>
                                            </td>      
                                            <td>
                                                <asp:Label ID="lblTotalOpenQty" runat="server" Text="差异量:" class="label"></asp:Label>
                                                <asp:Label ID="lblTotalOpenQtyText" runat="server" Text="" class="label" Style="margin-right: 10px;"></asp:Label>
                                            </td>                                          
                                            <td>
                                                <asp:Label ID="lblTotalWgt" runat="server" Text="总重量:" class="label"></asp:Label>
                                                <asp:Label ID="lblTotalWgtText" runat="server" Text="" class="label" Style="margin-right: 10px;"></asp:Label>
                                            </td>   
                                              <td>
                                                <asp:Label ID="lblTotalWeight" runat="server" Text="总毛重:" class="label"></asp:Label>
                                                <asp:Label ID="lblTotalWeightText" runat="server" Text="" class="label" Style="margin-right: 10px;"></asp:Label>
                                            </td>
                                            <td>
                                                <asp:Label ID="lblTotalCube" runat="server" Text="总体积:" class="label"></asp:Label><asp:Label
                                                    ID="lblTotalCubeText" runat="server" Text="" class="label" Style="margin-right: 10px;"></asp:Label>
                                            </td>
                                                                                     
                                        </tr>
                                    </table>
                                </td>
                                <td class="Result_03">
                                </td>
                            </tr>
                            <tr style="height: 20px">
                                <td>
                                </td>
                            </tr>
                        </table>
                    </div>
                 </div>
                    <div id="div_pager">
                        <uc1:Pager ID="PagerFooter" runat="server"  OnFirst="btnFirst_Click" OnPrevious="btnPrevious_Click" OnNext="btnNext_Click" OnLast="btnLast_Click" OnGoTo="GoTo_Click"/>
                    </div>
                <input type="hidden" runat="server" id="hdnFrom" />
                
            </ContentTemplate>
       </asp:UpdatePanel>
        <input type="hidden" id="hdnActionID" runat="server" />
        
        <div id="div_List_bottom">
            <table>
                <tr>
                    <td>
                        <asp:Button ID="btnSearch" runat="server" Text="<%$Resources:ButtonResource,btnSearch%>" CssClass="button" Enabled="False" 
                            OnClientClick="javascript:window.location.href='ShipmentOrderRptQuery.aspx';return false;" 
                             />
                    </td>
                    <td>
                        <asp:Button ID="btnReSearch" runat="server" Text="<%$Resources:ButtonResource,btnReSearch%>" CssClass="button" Enabled="False" 
                            OnClientClick="javascript:returnSearch();return false;" 
                             />
                    </td>
                    <td>
                        <asp:Button ID="btnList" runat="server" Text="<%$Resources:ButtonResource,btnList%>" CssClass="button" Enabled="False" 
                           onclick="btnList_Click"   />
                    </td>
                    <td>
                        <asp:Button ID="btnExport" runat="server" Text="<%$Resources:ButtonResource,btnExport%>" CssClass="button" Enabled="False" 
                             onclick="btnExport_Click"     />
                    </td>
                </tr>
            </table>
        </div>      
        
    </div>
    </form>
</body>
</html>
